package com.wfjjt;

import javax.swing.*;

public class AlgoJframe extends JFrame {

    private int canvasWidth;
    private int canvasHeight;

    public AlgoJframe(String title, int canvasWidth, int canvasHeight){

        super(title);
        this.canvasWidth = canvasWidth;
        this.canvasHeight = canvasHeight;
        setSize(canvasWidth,canvasHeight);
        setResizable(false);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setVisible(true);

    }
    public AlgoJframe(String title){

        this("welcome",500,400);

    }
    public int getCanvasWidth() {

        return this.canvasWidth;

    }
    public int getCanvasheight() {

        return this.canvasHeight;
        
    }
}
